Skip to content

try to fix memory leak in the locktable#12

Merged
g4197 merged 1 commit intothustorage:mainfrom
junjieqi:patch-1
Feb 4, 2026
Merged

try to fix memory leak in the locktable#12
g4197 merged 1 commit intothustorage:mainfrom
junjieqi:patch-1

Conversation

@junjieqi
Copy link
Contributor

The LockTable class was allocating an array of pthread_rwlock_t objects in its constructor but never freeing them in the destructor. This caused a 7MB memory leak detected by AddressSanitizer.

The LockTable class was allocating an array of pthread_rwlock_t objects
in its constructor but never freeing them in the destructor. This caused
a 7MB memory leak detected by AddressSanitizer.
@g4197
Copy link
Collaborator

g4197 commented Feb 2, 2026

Thank you for your contribution! Is there any other memory leaks detected by ASan? You could also fix them simultaneously.

@junjieqi
Copy link
Contributor Author

junjieqi commented Feb 3, 2026

@g4197 haven't occurred others so far.

@g4197 g4197 merged commit 6a0403c into thustorage:main Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants